"""
@version:python3
@author:ll
@file:作业1 通用文件copy工具.py
@time:2022/1/19 19:40
"""

src_file = input("输入源文件地址：").strip()
dst_file = input("输入目的文件地址：").strip()
with open(r"{}".format(src_file),mode="rb") as f1, \
open(r"{}".format(dst_file),mode="wb") as f2:
    while True:
        res = f1.read(1024)
        if len(res) == 0:
            break
        f2.write(res)